<html>
<head><meta charset="utf-8"><title>Weird comma in lifetime suggestion · t-compiler · Zulip Chat Archive</title></head>
<h2>Stream: <a href="https://rust-lang.github.io/zulip_archive/stream/131828-t-compiler/index.html">t-compiler</a></h2>
<h3>Topic: <a href="https://rust-lang.github.io/zulip_archive/stream/131828-t-compiler/topic/Weird.20comma.20in.20lifetime.20suggestion.html">Weird comma in lifetime suggestion</a></h3>

<hr>

<base href="https://rust-lang.zulipchat.com">

<head><link href="https://rust-lang.github.io/zulip_archive/style.css" rel="stylesheet"></head>

<a name="194329727"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/131828-t-compiler/topic/Weird%20comma%20in%20lifetime%20suggestion/near/194329727" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> marmeladema <a href="https://rust-lang.github.io/zulip_archive/stream/131828-t-compiler/topic/Weird.20comma.20in.20lifetime.20suggestion.html#194329727">(Apr 16 2020 at 16:16)</a>:</h4>
<p>Hello everyone!<br>
I noticed some weird suggestion with a "," (comma) after the <code>&amp;'lifetime</code>. I don't think its valid syntax, but I could be wrong?</p>
<div class="codehilite"><pre><span></span>error[E0106]: missing lifetime specifier
  --&gt; engine/src/ast/visitor.rs:13:49
   |
13 |     fn visit_expr(&amp;mut self, node: &amp;impl ValueExpr&lt;&#39;_&gt;) {
   |                                                    ^^ expected named lifetime parameter
   |
help: consider introducing a named lifetime parameter
   |
13 |     fn visit_expr(&amp;mut self, node: &amp;&#39;lifetime, impl ValueExpr&lt;&#39;lifetime&gt;) {
   |                                     ^^^^^^^^^^                ^^^^^^^^^
</pre></div>



<a name="194330434"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/131828-t-compiler/topic/Weird%20comma%20in%20lifetime%20suggestion/near/194330434" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> eddyb <a href="https://rust-lang.github.io/zulip_archive/stream/131828-t-compiler/topic/Weird.20comma.20in.20lifetime.20suggestion.html#194330434">(Apr 16 2020 at 16:21)</a>:</h4>
<p>no it's not :P</p>



<a name="194332014"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/131828-t-compiler/topic/Weird%20comma%20in%20lifetime%20suggestion/near/194332014" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> marmeladema <a href="https://rust-lang.github.io/zulip_archive/stream/131828-t-compiler/topic/Weird.20comma.20in.20lifetime.20suggestion.html#194332014">(Apr 16 2020 at 16:31)</a>:</h4>
<p>Ok, that needs a fix :p I'll see what i can do</p>



<hr><p>Last updated: Aug 07 2021 at 22:04 UTC</p>
</html>